From: Florian Müllner Date: Mon, 25 Jan 2021 11:12:44 +0000 (+0100) Subject: screenshot: Clean up when creating stream failed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~554 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fec745ffb816fb9ca1ac9b7776f4e785826982bc;p=gnome-shell.git screenshot: Clean up when creating stream failed Otherwise the tracked screenshot operation will block all future requests from the same sender. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3618 Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 05120e1a2..8a92c6213 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -109,6 +109,7 @@ var ScreenshotService = class { return [stream, file]; } catch (e) { invocation.return_gerror(e); + this._removeShooterForSender(invocation.get_sender()); return [null, null]; } } @@ -126,6 +127,7 @@ var ScreenshotService = class { } invocation.return_gerror(err); + this._removeShooterForSender(invocation.get_sender()); return [null, null]; }